﻿#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    //ui->actionnew->setIcon(QIcon("C:/Users/hp/Desktop/Image/1.jpg"));

    //添加资源到Qt中
    ui->actionnew->setIcon(QIcon(":/C:/Users/hp/Desktop/Image/1.jpg"));
    ui->actionopen->setIcon(QIcon(":/C:/Users/hp/Desktop/Image/2.jpg"));


}

MainWindow::~MainWindow()
{
    delete ui;
}
